from django import forms

from smart import models
from smart.utils.boot import BootStrapForm
from smart.utils.md5 import md5


class HomeModelForm(BootStrapForm, forms.ModelForm):
    """
    用户form
    """
    except_bootstrap_styles = ['is_active']

    class Meta:
        model = models.Home
        fields = ['name', 'home_img']
